﻿using System.Collections;
using System.Collections.Generic;
using INTEX.DataBase.Tools;
using ReflectionStudio.Core;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.IO;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
   
    public partial class ITXEXRPT
    {
        public string FLTPrint(ref bool IsReturn)
        {
            if (app.company != "FLT")
                return filename;
            Helper.GetDate(ref date, ref year, ref month, ref day);
            switch (DocType)
            {

                case "FLTABMCO"://订单列表
                    destfolder = SetFolder(Root, "库存评估");
                    #region====文件命名==============
                    order = date;
                    DestFile = destfolder + "\\库存评估" + order + ".xls";
                    #endregion
                    #region=====空白文档=======
                    Standard = "FLTABMCO";
                    exAgent.CreateNewSheet(temp + ".xls", Standard);
                    tempfile = exAgent.FileName;
                    #endregion
                    FLTABMCO(dsSource);
                    break;
                case "FLTICCGABEW"://业务明细
                    destfolder = SetFolder(Root, "业务明细");
                    #region====文件命名==============
                    order = date;
                    DestFile = destfolder + "\\业务明细" + order + ".xls";
                    #endregion
                    #region=====空白文档=======
                    Standard = "FLTICCGABEW";
                    exAgent.CreateNewSheet(temp + ".xls", Standard);
                    tempfile = exAgent.FileName;
                    #endregion
                    FLTICCGABEW(dsSource);
                    break;


            }
            return filename;
        }

    }
}
